<template>
	<view class="layout">
		<demo-child ref="child"></demo-child>
		<view></view>
		<button @click="update">点击修改子值</button>
		
		<navigator url="/pages/demo6/demo6?name=王五&age=20">跳转到demo6</navigator>
	</view>
</template>

<script setup>
import { onMounted, ref } from 'vue';
const child = ref(null)
const update = function(){
	console.log(child.value)
	chlid.value.updataeCount()
} 


onMounted(()=>{
	console.log(child.value)
})


</script>

<style lang="scss" scoped>

</style>
